<?php
	try
	{
		$conn = new PDO( "sqlsrv:server=(local);Database=ROOM","sa","123@tanhoa");
		$conn->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
		$conn->setAttribute( PDO::SQLSRV_ATTR_QUERY_TIMEOUT, 1 );
	}
	catch(Exception $ex)
	{ 
		echo "Could not connect.<br/>".print_r( $ex->getMessage(), true);
	}
?>